package com.erp.framework.controller.form;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.erp.framework.SimpleConstants;

public abstract class SimpleValidator implements SimpleConstants{

	public abstract void validateSearch(ActionErrors errors, ActionForm form);
	
	public abstract void validateSave(ActionErrors errors, ActionForm form);
	
	public abstract void moreValidateSearch(ActionMapping mapping, ActionForm formIn,
			HttpServletRequest request, HttpServletResponse response, ActionErrors errors);
	
	public abstract void moreValidateSave(ActionMapping mapping, ActionForm formIn,
			HttpServletRequest request, HttpServletResponse response, ActionErrors errors);

}
